package org.lazy.generate.common;

import java.util.List;

public class Condition {
	private String condition;
	
	private Object value;
    private Object secondValue;
    
    private boolean noValue;
    private boolean oneValue;
    private boolean betweenValue;
    private boolean inValue;
    
 
    
	public Condition(String condition) {
		super();
		this.noValue = true;
		this.condition = condition;
	}

	public Condition(String condition, Object value) {
		super();
		if (value instanceof List<?>) {
            this.inValue = true;
        } else {
            this.oneValue = true;
        }
		this.condition = condition;
		this.value = value;
	}

	public Condition(String condition, Object value, Object secondValue) {
		super();
		this.betweenValue = true;
		this.condition = condition;
		this.value = value;
		this.secondValue = secondValue;
	}

	
	
	
	public String getCondition() {
		return condition;
	}

	public void setCondition(String condition) {
		this.condition = condition;
	}

	public Object getValue() {
		return value;
	}

	public void setValue(Object value) {
		this.value = value;
	}

	public Object getSecondValue() {
		return secondValue;
	}

	public void setSecondValue(Object secondValue) {
		this.secondValue = secondValue;
	}

	public boolean isNoValue() {
		return noValue;
	}

	public void setNoValue(boolean noValue) {
		this.noValue = noValue;
	}

	public boolean isOneValue() {
		return oneValue;
	}

	public void setOneValue(boolean oneValue) {
		this.oneValue = oneValue;
	}

	public boolean isBetweenValue() {
		return betweenValue;
	}

	public void setBetweenValue(boolean betweenValue) {
		this.betweenValue = betweenValue;
	}

	public boolean isInValue() {
		return inValue;
	}

	public void setInValue(boolean inValue) {
		this.inValue = inValue;
	}
	
}
